<h2>Wufoo WebHook Integration</h2>

<p>
    Wufoo supports multiple ways to integrate your site with the collected data from your Wufoo forms.
    One of these approaches is WebHooks, which enables you to execute some action on your web site each time a Wufoo form is submitted. 
    For more information of WebHooks see <a href="http://wufoo.com/docs/integrations/webhooks/">Wufoo documentation</a>.
</p>
<p>
    The Wufoo helper makes it easy to retrieve and process your form data through WebHooks.
    Ideally, for testing WebHooks you should have this sample site published under a public address, where to point your Wufoo account to. 
    However, this sample can also be run locally using a mock page that simulates a Wufoo form submission.
    
</p>
<h3>For Testing WebHooks in a Public Site</h3>

<ol>
    <li> <a href="https://secure.wufoo.com/login">Login</a> with your Wufoo account and create a new form if you haven't done this yet. </li>
    <li> In the forms manager tab, enter the notifications settings for your form. </li>
    <li> Add a new integration with WebHook, pointing <b>your WebHook URL</b> to the following url.<br/>
        <em><blockquote>http://{your-public-address}/WebHook</blockquote></em> 
        This page will handle the WebHooks and show the submitted data using the <b>GetWebHooksData()</b> method from the helper.
        Optionally you can configure a WebHook Handshake key value for security purposes.</li>
    <li>Check the option <b>Include Field and Form Structures with Entry Data.</b></li>
    <li>Open your online form and <b>submit it</b>. You can do this from your Wufoo form manager.</li>
    <li>Now that you have posted data, browse to <a href="@Href("~/WebHook")">WebHook page</a>. </li>
        
</ol>

<h3>For Testing WebHooks Locally</h3>
<ol>
    <li>Browse to the <a href="@Href("~/WebHookSample")">WebHookSample</a> page to load the mock page that simulates a form submission.</li>
    <li>Fill with data or use the preloaded one, and submit the form.</li>
    <li>Once that you have posted the data, the WebHooks result page will load.</li>
    
</ol>